﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TriviaViewModels
{
    public class ScoreBoardViewModelWizard:WizardViewBase
    {
        
        private List<ServiceReference1.UserClass> _usersScore;
        public List<ServiceReference1.UserClass> UsersScore
        {
            get { return _usersScore; }
            set
            {
                if (_usersScore != value)
                {
                    _usersScore = value;
                    RaisePropertyChanged("UsersScore");
                }
            }
        }
        public ScoreBoardViewModelWizard(string userName, string score)
        {

        }
        public ScoreBoardViewModelWizard()
        {
            using (var proxy = new ServiceReference1.GameServiceClient())
            {

                UsersScore = proxy.ReturnUsers().ToList();
            }
        }
    }
}
